﻿using System;
using Appology.SugarSync.IO.Primitives;
using System.Threading.Tasks;

namespace Appology.SugarSync.Explorer.Phone
{
    public class FakePathInfo : SugarSyncPathInfo
    {
        public FakePathInfo(string name) : base(null, null)
        {
            Name = name;
        }

        public async override Task RefreshAsync()
        {
            // do nothing
        }

        private bool _isBusy;

        public override bool IsBusy
        {
            get { return _isBusy; }
            set
            {
                if (_isBusy != value)
                {
                    _isBusy = value;
                    OnPropertyChanged("IsBusy");
                }
            }
        }
    }
}